package com.shijunhao.graduation.service.system;

import com.shijunhao.graduation.domain.entity.SystemDict;
import com.shijunhao.graduation.domain.entity.SystemDictItem;
import com.shijunhao.graduation.service.system.BaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shijunhao
 * @since 2022-03-04
 */
public interface ISystemDictService extends BaseService<SystemDict> {
    /**
     * @param code: 编码
     * @return: com.shijunhao.graduation.domain.entity.SystemDict
     * @author: shijunhao
     * @date: 2022/3/4 17:32
     * @description:
     */
    SystemDict loadByCode(String code);


    /**
     * @param code: 字典code
     * @param label: 字典项文本
     * @return: com.shijunhao.graduation.domain.entity.SystemDictItem
     * @author: shijunhao
     * @date: 2022/3/7 23:06
     * @description: 通过字典项文本加字典code定位一个字典项
     */
    SystemDictItem loadByCodeLabel(String code, String label);

    /**
     * @param code: 字典code
     * @param value: 字典值
     * @return: com.shijunhao.graduation.domain.entity.SystemDictItem
     * @author: shijunhao
     * @date: 2022/3/7 23:06
     * @description: 通过字典项文本加字典值定位一个字典项
     */
    SystemDictItem loadByCodeValue(String code,Integer value);
}
